package com.tongcao.cn.thread.pool;

/**
 * @author:tongcao
 * @since:2019/6/19 18:18
 * Description:
 */
public class JobClient {


    public static void main(String[] args) {


        ThreadPool<Runnable> pool = new DefeaultThreadPool<>(10);

        for (int i = 0; i < 1000; i++) {
            if (i == 30) {
                pool.addWorker(10);
            }
            Job job = new Job();
            pool.execute(job);
        }
    }
}